package ThreadProDay1;

public class ThreadThree{
	public static void main(String[] args) {
		/*
		 * My my = new My(); my.setName("my"); my.start();
		 */
		My my = new My();
		Thread thread = new Thread(my);
		thread.setName("ny");
		thread.start();
		for(int i = 0;i<10000;i++) {
			System.out.println("main ="+Thread.currentThread().getName());
		}
	}
}
